home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Utilities / Ghostscript / src / gscdevn.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-01-01  |  2.3 KB  |  69 lines

  1. /* Copyright (C) 2000 Aladdin Enterprises.  All rights reserved.
  2.   
  3.   This file is part of AFPL Ghostscript.
  4.   
  5.   AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author or
  6.   distributor accepts any responsibility for the consequences of using it, or
  7.   for whether it serves any particular purpose or works at all, unless he or
  8.   she says so in writing.  Refer to the Aladdin Free Public License (the
  9.   "License") for full details.
  10.   
  11.   Every copy of AFPL Ghostscript must include a copy of the License, normally
  12.   in a plain ASCII text file named PUBLIC.  The License grants you the right
  13.   to copy, modify and redistribute AFPL Ghostscript, but only under certain
  14.   conditions described in the License.  Among other things, the License
  15.   requires that the copyright notice and this notice be preserved on all
  16.   copies.
  17. */
  18.  
  19. /*$Id: gscdevn.h,v 1.3 2000/09/19 19:00:26 lpd Exp $ */
  20. /* Client interface to DeviceN color */
  21.  
  22. #ifndef gscdevn_INCLUDED
  23. #  define gscdevn_INCLUDED
  24.  
  25. #include "gscspace.h"
  26.  
  27. /*
  28.  * Allocate and fill in a DeviceN color space.
  29.  * Note that the client is responsible for memory management of the
  30.  * name array and (if used) the tint transform Function.
  31.  */
  32. int gs_cspace_build_DeviceN(P5(
  33.                    gs_color_space **ppcspace,
  34.                    gs_separation_name *psnames,
  35.                    uint num_components,
  36.                    const gs_color_space *palt_cspace,
  37.                    gs_memory_t *pmem
  38.                    ));
  39.  
  40. /* Set the tint transformation procedure for a DeviceN color space. */
  41. /* VMS limits procedure names to 31 characters, and some systems only */
  42. /* compare the first 23 characters. */
  43. extern int gs_cspace_set_devn_proc(P3(
  44.                       gs_color_space * pcspace,
  45.             int (*proc)(P5(const gs_device_n_params *,
  46.                        const float *,
  47.                        float *,
  48.                        const gs_imager_state *,
  49.                        void *
  50.                        )),
  51.                       void *proc_data
  52.                       ));
  53.  
  54. /* Set the DeviceN tint transformation procedure to a Function. */
  55. #ifndef gs_function_DEFINED
  56. typedef struct gs_function_s gs_function_t;
  57. #  define gs_function_DEFINED
  58. #endif
  59. int gs_cspace_set_devn_function(P2(gs_color_space *pcspace,
  60.                    gs_function_t *pfn));
  61.  
  62. /*
  63.  * If the DeviceN tint transformation procedure is a Function,
  64.  * return the function object, otherwise return 0.
  65.  */
  66. gs_function_t *gs_cspace_get_devn_function(P1(const gs_color_space *pcspace));
  67.  
  68. #endif /* gscdevn_INCLUDED */
  69.